from django.urls import path
from .views import RolePageView, RoleOptionsView, CreateRoleView, GetRoleFormView, UpdateRoleView, DeleteRoleView, \
    GetRoleMenuIdsView, AssignRoleMenusView, UpdateRoleStatusView

urlpatterns = [
    path('roles/page', RolePageView.as_view(), name='roles-page'),
    path('roles/options', RoleOptionsView.as_view(), name='roles-options'),
    path('roles', CreateRoleView.as_view(), name='create-role'),
    path('roles/<int:role_id>/form', GetRoleFormView.as_view(), name='role-form'),
    path('roles/<int:id>', UpdateRoleView.as_view(), name='role-update'),
    path('roles1/<str:ids>', DeleteRoleView.as_view(), name='delete_roles'),
    path('roles/<int:role_id>/menuIds', GetRoleMenuIdsView.as_view(), name='role_menu_ids'),
    path('roles/<int:role_id>/menus', AssignRoleMenusView.as_view(), name='assign_role_menus'),
    path('roles/<int:role_id>/status', UpdateRoleStatusView.as_view(), name='update_role_status'),

]
